﻿@model PhotoGallery.Models.LogOnModel
@using PhotoGallery.Areas.Auth.Views

@{
   
    ViewBag.Title = "LogOn";
}

<h2>@Account.logOn</h2>
@Html.ValidationSummary(true, "Login was unsuccessful. Please correct the errors and try again.")

@using (Html.BeginForm((string)ViewBag.FormAction, "Account")) {
    <fieldset>
        <legend>@Account.logOnForm</legend>
        <ol>
            <li>
                @Html.LabelFor(m => m.UserName)
                @Html.TextBoxFor(m => m.UserName)
                @Html.ValidationMessageFor(m => m.UserName)
            </li>
            <li>
                @Html.LabelFor(m => m.Password)
                @Html.PasswordFor(m => m.Password)
                @Html.ValidationMessageFor(m => m.Password)
            </li>
            <li>
                @Html.CheckBoxFor(m => m.RememberMe)
                @Html.LabelFor(m => m.RememberMe, new { @class = "checkbox" })
            </li>
        </ol>
        <input type="submit" value="@Account.logOn" title="Log On" />
    </fieldset>
}
@Html.Action("ExternalLoginsList", new { ReturnUrl = ViewBag.ReturnUrl })
@Html.ActionLink(@Account.register, "Register")  if you don't have an account.
